#Lock in Slot
execute as @a[predicate=dab:is_playing] at @s run function dab:system/arrow_bundle/lock_in_slot/check_bundle_slot

#Pickup Arrow
execute as @a[predicate=dab:is_playing,gamemode=!spectator] if items entity @s hotbar.8 *[custom_data~{id:"arrow_bundle"}] if data entity @s Inventory[{components:{"minecraft:custom_data":{type:"arrow"}}}] at @s run function dab:system/arrow_bundle/storage/pickup_arrow/pickup

#Drop Arrow
execute as @a[predicate=dab:is_playing] if data entity @s Inventory[{Slot:8b}].components."minecraft:custom_data".drop_arrow at @s run function dab:system/arrow_bundle/storage/drop_arrow/drop with entity @s Inventory[{Slot:8b}].components."minecraft:custom_data"